import instance from "@/utils/request";
enum API{
    TRADK_RUL='/admin/product/baseTrademark/',
    ADD_TRADK_RUL='/admin/product/baseTrademark/save',
    EDIT_TRADK_RUL='/admin/product/baseTrademark/update',
    DELETE_TRADK_RUL='/admin/product/baseTrademark/remove'
}

// 品牌获取接口
export const TrademarkAPI=(page:number,limit:number)=>{
  return instance.get<any,any>(API.TRADK_RUL+`${page}/${limit}`)
}

// 添加品牌接口
export const AddTrademarkAPI=(data:any)=>{
  return instance.post<any,any>(API.ADD_TRADK_RUL,data)
}

// 修改品牌接口
export const EditTrademarkAPI=(data:any)=>{
  return instance.put<any,any>(API.EDIT_TRADK_RUL,data)
}

// 删除品牌接口
export const DeleteTrademarkAPI=(id:any)=>{
  return instance.delete<any,any>(API.EDIT_TRADK_RUL+id)
}
